package com.changgou.goods.dao;

import com.changgou.goods.pojo.Category;
import feign.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface CategoryMapper extends Mapper<Category> {
    //多级商品分类列表展示
    @Select( "SELECT NAME FROM tb_category WHERE parent_id=#{id}" )
    public List<String> findListByParentId(@Param("id")Integer id);
}
